Data-Unloading Functions
Compressors use the data-loading and data-unloading functions when working with images that do not fit into the computer's memory. The data-unloading function writes compressed data to a storage device during a compression operation.The
FlushProcPtr
data type defines a pointer to a data-unloading function.
/* data-unloading structure */ typedef struct FlushProcRecord FlushProcRecord; typedef FlushProcRecord *FlushProcRecordPtr;You assign a data-unloading function to an image or a sequence by passing a pointer to a structure that identifies the function to the appropriate compression function.The data-unloading function structure contains the following fields:
struct FlushProcRecord { FlushProcPtr flushProc;/* pointer to data-unloading function */ long flushRefCon;/* reference constant */ };
Field Description
flushProc
- Contains a pointer to your data-unloading function.
flushRefCon
- Contains a reference constant for use by your data-unloading function.
Subtopics
- MyDataUnloadingProc